﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CCH.DAO;
using CCH.Entity;

public partial class _1007 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["sfu_type"] != null && Request["sfu_type"] != "")
        {
            sysfunctionDAO dao = new sysfunctionDAO();
            int sfu_no = dao.Get_pathNO(2004, Request["sfu_type"]);
            this.ObjectDataSource1.SelectParameters["alb_type"].DefaultValue = Request["sfu_type"];

            //標題名稱 <a href="">首頁</a><img src="css/tem/img/img-icon-4.jpg" width="5" height="7" />最新消息
            this.nav.InnerHtml = "";
            string imgStr = "<img src=\"css/tem/img/img-icon-4.jpg\" width=\"5\" height=\"7\" />";
            string[] sfu_name = dao.Get_titleName(sfu_no).Split('/');

            if (sfu_name[0].Trim() == sfu_name[1].Trim())
            {
                this.nav.InnerHtml = string.Format("<a href=\"index.aspx\">" + "首頁".ConverToCN() + "</a>{0}<a href=\"#\"><b>{1}</b></a>", imgStr, sfu_name[1].Trim()).ConverToCN();
            }
            else
            {
                this.nav.InnerHtml = string.Format("<a href=\"index.aspx\">" + "首頁".ConverToCN() + "</a>{0}<a href=\"#\">{1}</a>{2}<a href=\"#\"><b>{3}</b></a>", imgStr, sfu_name[0].Trim(), imgStr, sfu_name[1].Trim()).ConverToCN();
            }

            //this.lab_title2.Text = sfu_name[1].Trim();
        }


    }
}